first version.
[build-srcpkg.git] / testing / 2.test_suite_testing.Testing for testsuite scripttest.unit / 11.scripttest_multi.Testsuite multi-paramter mixed testing.dir / 5.scripttest_param_r.sh
blob03e1fcee15945d2e64efce07190ee584efdbe90a
1 #!/bin/bash
3 ############################################################
4 # Copyright (C) 2022- Free Software Foundation, Inc.
5 # This configure script is free software; the Free Software
6 # Foundation gives unlimited permission to copy, distribute
7 # and modify it.
9 . shlibinc
10 include stdio.shlib
13 init_dbglogout 2 testing 20000
15 dbgout "$0\n"
17 #err "$0\n"
19 echo $0
21 #echo xxx > /dev/pts/0
23 #ls -l> /dev/pts/0
25 dbgout_cmd pwd
26 dbgout_cmd ls
28 cd scripts
29 ln -s `which scripttest` scripttesttest
30 #(pwd ; ls -l)> /dev/pts/0
32 dbgout "aaaaaaaaaaaaaaaa\n"
33 ./scripttesttest -c
36 # 在testing目录的测试例子中,第3个测试会遇到failed
37 # 测试-n设置1、2、3、5,测试5个item时,应该failed在第3个item上。
38 # 使用-r参数将测试,忽略测试failed,测试所以测试项。
39 # 连续测试failed超过10项,自动暂停测试
40 dbgout "aaaaaaaaaaaaaaaa\n"
41 ./scripttesttest -n 15
43 dbgout "aaaaaaaaaaaaaaaa\n"
44 ./scripttesttest -n 15 -r
46 dbgout "aaaaaaaaaaaaaaaa\n"
47 ./scripttesttest -c
49 dbgout "aaaaaaaaaaaaaaaa\n"